package com.dhecp.core.utils.dingtalk;

/**
 * @ClassName 钉钉URL常量
 * @Description TODO
 * @Author alula
 * @Date 2022-03-04 16:38
 */
public class DtApiUrls {
    // 获取access_token的接口地址（GET） 限2000（次/天）get请求
    public final static String ACCESS_TOKEN_URL = "https://oapi.dingtalk.com/gettoken?appkey=APPKEY&appsecret=APPSECRET";
    //获取企业的jsapi_ticket的接口地址（GET） 限2000（次/天）get请求
    public static final String JSAPI_TICKET_URL = "https://oapi.dingtalk.com/get_jsapi_ticket?access_token=ACCESS_TOKEN";
    //创建钉钉用户
    public static final String USER_CREATE_URL = "https://oapi.dingtalk.com/topapi/v2/user/create?access_token=ACCESS_TOKEN";
    //修改钉钉用户
    public static final String USER_UPDATE_URL = "https://oapi.dingtalk.com/topapi/v2/user/update?access_token=ACCESS_TOKEN";
    //删除钉钉用户
    public static final String USER_DELETE_URL = "https://oapi.dingtalk.com/topapi/v2/user/delete?access_token=ACCESS_TOKEN";
    //获取钉钉部门列表
    public static final String DEPT_GET_URL = "https://oapi.dingtalk.com/topapi/v2/department/listsub?access_token=ACCESS_TOKEN";
    //获取钉钉子部门列表
    public static final String SUB_DEPT_GET_URL = "https://oapi.dingtalk.com/topapi/v2/department/listsub?access_token=ACCESS_TOKEN&dept_id=DEPT_ID";
    //获取钉钉部门成员
    public static final String USER_GET_URL = "https://oapi.dingtalk.com/topapi/user/listsimple?access_token=ACCESS_TOKEN&dept_id=DEPT_ID&cursor=CURSOR&size=SIZE";
    //获取访问用户身份
    public static final String USERINFO_GET_URL = "https://oapi.dingtalk.com/topapi/v2/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE";
    //发送工作通知
    public static final String MESSAGE_SEND_URL = "https://oapi.dingtalk.com/topapi/message/corpconversation/asyncsend_v2?access_token=ACCESS_TOKEN";
    //获取打卡详情
    public static final String ATTENDANCE_GET_URL = "https://oapi.dingtalk.com/attendance/listRecord?access_token=ACCESS_TOKEN";
    //oauth2授权地址
    public static final String OAUTH2_AUTHORIZE_URL = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?appid=APPID&response_type=code&scope=snsapi_auth&state=STATE&redirect_uri=REDIRECT_URI";

}
